#ifndef SAMPLE_TEXTURE_H
#define SAMPLE_TEXTURE_H


#include "BaseSample.h"



class SampleTexture : public BaseSample
{
public:
    GLfloat* squareVertices;
    GLfloat* squareColorVertices;

    SampleTexture();
    ~SampleTexture();

    virtual void LoadImage(NativeImage *pImage);

    virtual void Init();

    virtual void Draw();

    virtual void Destroy();

    virtual void setParentViewSize(int w, int h);
    virtual void OnSurfaceCreated();
    virtual void OnSurfaceChanged(int width, int height);

public:
    NativeImage m_RenderImage;
    GLuint m_TextureId;
    GLint m_SamplerLoc;
};


#endif